float oneshot_get_cm_range_sensor_gp2ya02y(const int iInfraPin)
{
  float fDistance = -1.0f;

  int iAnalogValue = analogRead(iInfraPin);
  if(iAnalogValue < 600)
  {
    // http://arduinomega.blogspot.fr/2011/05/infrared-long-range-sensor-gift-of.html
    fDistance = 10650.08 * pow(iAnalogValue,-0.935) - 10;
  }

  // retour en cm
  return fDistance;
}

